package cn.xorange.commons.security.mapper;

import cn.xorange.commons.security.entity.SecurityTenant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : yangjian
 * @date : 2023/11/26
 */
@Mapper
public interface LoginTenantMapper {

    SecurityTenant selectTenantById(@Param("tenantId") Long tenantId);

    List<SecurityTenant> selectTenantListByAdmin();

    List<SecurityTenant> selectUserListByLoginName(@Param("loginName") String loginName);
}
